import { BagType } from "core/typeDefine/typeDefine"
import { ItemModel } from "./itemModel"

export class BagModel {
    type: BagType
    size: number
    addSize: number
    items: ItemModel[]
    emptySize: number
    lvl: number
    constructor(opts) {
        opts = opts || {}
        this.type = opts.type || BagType.Bag
        this.size = opts.size || 0
        this.addSize = opts.addSize || 0
        this.items = opts.items || []
        this.emptySize = opts.emptySize || 0
        this.lvl = opts.lvl || 0
    }
}
